package com.hgw.Demo02CommandPattern.examples;

/**
 * Data time:2021/12/16 19:31
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        FunctionButton fb = new FunctionButton();
        Command command;        // 定义命令对象
        command = new HelpCommand();    // 创建命令具体类
        fb.setCommand(command);         // 将命令功能注入功能键
        fb.click();                     // 调用功能键的业务方法
    }
}
